package com.neepu.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class LogInfo {

    private int id;
    private String userID;
    private String userName;
    private Date operationTime;
    private String creatTimeStr;
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    private String operationShow;
    private String exceptionMessage;



    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(Date operationTime) {
        this.operationTime = operationTime;
        String time = sdf.format(operationTime);
        setCreatTimeStr(time);
    }

    public String getOperationShow() {
        return operationShow;
    }

    public void setOperationShow(String operationShow) {
        this.operationShow = operationShow;
    }

    public String getExceptionMessage() {
        return exceptionMessage;
    }

    public void setExceptionMessage(String exceptionMessage) {
        this.exceptionMessage = exceptionMessage;
    }

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCreatTimeStr() {
        return creatTimeStr;
    }

    public void setCreatTimeStr(String creatTimeStr) {
        this.creatTimeStr = creatTimeStr;
    }

    @Override
    public String toString() {
        return "LogInfo{" +
                "id='" + id + '\'' +
                ", userID='" + userID + '\'' +
                ", userName='" + userName + '\'' +
                ", operationTime=" + operationTime +
                ", operationShow='" + operationShow + '\'' +
                ", exceptionMessage='" + exceptionMessage + '\'' +
                '}';
    }
}

